<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>报名 - newglass 100台免费送</title>
    <meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta content="telephone=no" name="format-detection" />
    <meta content="email=no" name="format-detection" />
    {load_css file="css/base.css"}
    {load_css file="css/swiper.min.css"}
    {load_css file="css/m-activity.css"}
    {load_css file="css/m2-style2.css"}
    {load_js file="jquery-1.11.1.min.js"}
    {load_js file="swiper.min.js"}
    {load_js file="app/m_common.js"}
    {load_js file="jquery.scrollTo.min.js"}
    {*检测代码*}
    {load_js file="s_code.js"}
    <script>
    var siteUrl   = "{$smarty.const.SITE_URL}";
    var staticUrl = "{$smarty.const.STATIC_URL}";
    window.onload = window.onresize = function() {
        var view_width = document.getElementsByTagName('html')[0].getBoundingClientRect().width;

        var _html = document.getElementsByTagName('html')[0];
        view_width > 640 ? _html.style.fontSize = 640 / 16 + 'px' : _html.style.fontSize = view_width / 16 + 'px';
    }
    </script>
</head>
<body>
    {include_core file="m/lib/top_nav.html" nav_type="index"}
    <div class="warp apply-page">
        <header></header>
        <div class="apply">
            <a href="javascript:void(0);">报名结束</a>
        </div>
        <div class="apply" id="fn_box">
            <span>已有{$newglass_count}人申请</span>
        </div>
        <form action="{AnUrl('events/newglass/newglass_apply_add')}" method="post" class="js_apply_form">
        <dl class="name">
            <dt></dt>
            <dd><span>* 姓名 :</span><input type="text" name="info[name]" class="js_apply_name"></dd>
            <dd><span>* 联系电话 :</span><input type="text" name="info[mobile]" class="js_apply_mobile"></dd>
            <dd><span>* 收货地址 :</span><input type="text" name="info[address]" class="js_apply_address"></dd>
        </dl>
        <dl class="xi">
            <dt>填写更多信息更容易抽中哦！</dt>
            <dd><span>职业：</span><input type="text" name="info[job]"></dd>
            <dd><span>年龄：</span><input type="text" name="info[age]"></dd>
            <dd><span>微信号：</span><input type="text" name="info[wxnumber]"></dd>
            <dd><span>微博号：</span><input type="text" name="info[sinanumber]"></dd>
        </dl>
        <div>
            <h3>曾参与NBD线下活动：</h3>
            <textarea name="info[activity]" id="" cols="" rows=""></textarea>
        </div>
        <div>
            <h3>原创的科技数码类文章（链接）：</h3>
            <textarea name="info[essay]" id="" cols="" rows=""></textarea>
        </div>
        <div>
            <h3>对智能眼镜产品和行业的看法：</h3>
            <textarea name="info[viewpoint]" id="" cols="" rows=""></textarea>
        </div>
        <div>
            <h3>其他可以证明自己专业性的内容：</h3>
            <textarea name="info[professional]"></textarea>
        </div>
        </form>
        <p><a href="javascript:void(0);" class="js_apply_btn"></a></p>
    </div>
    <script type="text/javascript">
  $(function(){
    setTimeout(function(){
      $.scrollTo('#fn_box', 500);
    },500);
    $('.js_apply_btn').click(function(){
      showMsg('报名已结束');
      return;
      var name = $.trim($('.js_apply_name').val());
      var mobile = $.trim($('.js_apply_mobile').val());
      var address = $.trim($('.js_apply_address').val());

      if(name == '') {
        showMsg('姓名不能为空');
        return;
      }

      if(mobile == '') {
        showMsg('联系方式不能为空');
        return;
      }

      if(address == '') {
        showMsg('收货地址不能为空');
        return;
      }

      $('.js_apply_form').submit();
    });
  });
  </script>
  <div id="baiduTongji" style="display:none;">
  <script type="text/javascript">
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F17afbea460bf7d7a358be0aec426984a' type='text/javascript'%3E%3C/script%3E"));

    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?2c100d40d01f7b5aa808e911d9777bc8";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
  </script>
  </div>
</body>
</html>